package com.t282.crm.web.controller;

import com.t282.crm.service.RoleService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping(value = "/right")
public class RightController {
    @Resource
    private RoleService roleService;

    @RequestMapping(value = "/reload")
    public String reload(){ //权限刷新
        roleService.reloadFilterChainDefinitions();
        return "redirect:/main";
    }
}
